package com.dsj.gxrd.modules.controller.activity;

import com.dsj.gxrd.modules.activity.domain.entity.RdScore;
import com.dsj.gxrd.modules.activity.service.RdScoreService;
import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.core.web.page.TableDataInfo;
import com.ruoyi.common.security.annotation.RequiresPermissions;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;


/**
 * @author songpin566
 * @date 2023/09/14
 **/
@RestController
@Api("积分设置")
@RequestMapping("/score")
public class RdScoreController extends BaseController {

    @Autowired
    private RdScoreService rdScoreService;

    //@RequiresPermissions("duty:score:list")
    @GetMapping("/list")
    public TableDataInfo list(RdScore score) {
        List<RdScore> list = rdScoreService.selectScoreList(score);
        return getDataTable(list);
    }


}
